<?php

require_once './config.php';

$arr = json_decode($_REQUEST['arr']);

for($i = 0; $i < count($arr); $i++){
    $xuhao = $arr[$i];
    $sql = "DELETE FROM jiagou WHERE xuhao = $xuhao";
    mysqli_query($conn,$sql);
}
if($i === count($arr)){
    echo json_encode(array(
        'code' => 1,
        'msg' => '删除成功'
    ));
}


